package com.simtop.picture.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtils {

    static Properties  properties=new Properties();
    static InputStream in = PropertiesUtils.class.getResourceAsStream("/path.properties");
    public static String getProperties(){

        try {
            properties.load(in);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return properties.getProperty("path");
    }

    public static String getNetProperties(){

        try {
            properties.load(in);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return properties.getProperty("netPath");
    }
}
